package cn.itsource.ymcc.openfeign;


import cn.itsource.ymcc.common.result.JsonResult;
import cn.itsource.ymcc.openfeign.fallback.OrderFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-order",fallbackFactory = OrderFeignClientFallbackFactory.class)
public interface OrderFeignClient {
    @GetMapping("/courseOrder/getUserIdAndCourseId/{orderNo}")
    JsonResult getUserIdAndCourseId(@PathVariable("orderNo")String orderNo);
}
